const { exec } = require('child_process');
console.log("Exec command")
console.log(process.argv)
console.log("cwd: "+process.cwd())

const shellFile = process.argv.slice(2);
var yourscript = exec('sh '+shellFile,
        (error, stdout, stderr) => {
            console.log(stdout);
            console.log(stderr);
            if (error !== null) {
                console.log(`exec error: ${error}`);
            }
        });
